import request from '@/utils/request'

// 报修相关API
export const repairAPI = {
    // 提交报修记录
    submitRepair: (repairData) => {
        return request.post('/api/v1/repair', repairData)
    },

    // 查询本人填写记录列表
    getMyRepairList: () => {
        return request.get('/api/v1/repair/my')
    },

    // 查询全部填写记录列表
    getAllRepairList: (params = {}) => {
        return request.get('/api/v1/repair', params)
    },

    // 查询成员报修处理排行榜
    getRepairRanking: () => {
        return request.get('/api/v1/repair/handlerRanking')
    }
}
